<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
<form action="${ctxPathA}/system/sysconfig/addOrUpdate" method="post" autocomplete="off" class="show-info">
	<shield:token/>
    <input id="id" name="id" type="hidden" maxlength="100" value="${model.id }">
    <table class="tab-show">
    	<colgroup>
    		<col width="20%">
    		<col width="">
    	</colgroup>
		<tr>
			<th>
				<label><font color="red">*</font>参数名：</label>
			</th>
         	<td><input type="text" name="name" class=" required" value="${model.name}"></td>
		</tr>
<!-- 如果不为空则表示添加的是分类，没有父类 -->
<c:if test="${empty addp }">
		<tr>
			<th>
				<label>父类Id：</label>
			</th>
         	<td><!-- 增加样式select2_plugin，data-v表示默认值--><select 
         	class="select2_plugin" name="pid" data-v="${model.pid}">
	<c:forEach var="config" items="${topConfigs}"> 
			        <option value="${config.id }">${config.name }</option>
	</c:forEach>
				</select>

         	</td>
		</tr>
</c:if>
		<tr>
			<th>
				<label>顺序：</label>
			</th>
         	<td><input type="text" name="orders" class="" value="${model.orders}"></td>
		</tr>
		<tr>
			<th>
				<label><font color="red">*</font>参数数值：</label>
			</th>
         	<td><input type="text" name="value" class=" required" value="${model.value}"></td>
		</tr>
		<tr>
			<th>
				<label>状态：</label>
			</th>
         	<td><shield:switchOput data="-1=删除|正常" value="${model.state}"></shield:switchOput></td>
		</tr>
    </table>
    <div class="taCenter">
		<input class="button" type="submit" value="提交"/>
    	<input class="button default" type="reset" value="重置"/>
    </div>
</form>
</shield:permssion>